<?php /*a:1:{s:68:"D:\phpStudy\WWW\learning_tp5\application/index/view\demo7\test3.html";i:1535124303;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo htmlentities((isset($title) && ($title !== '')?$title:'张虎中文网')); ?></title>
    <link rel="stylesheet" href="/public/static/css/bootstrap.min.css">
    <script src="/public/static/js//jquery-3.3.1.min.js"></script>
    <script src="/public/static/js//bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-ml-2"></div>
        <div class="col-ml-8">
            <h2 class="text-center">学生信息表</h2>
            <table class="table table-default table-bordered table-hover text-center"><tr class="bg-primary">
                    <td>id</td>
                    <td>姓名</td>
                    <td>密码</td>
                    <td>地址</td>
                    <td>手机</td>
                </tr>
                <?php if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?>
                <tr>
                    <td>
                        <!--switch 判断语句-->
                        <?php switch($list['id']): case "1": ?>管理员<?php break; endswitch; ?>
                        <!--比较符表达式-->
                        <?php if($list['id'] > '5'): ?><?php echo htmlentities($list['id']); endif; ?>

                        <!--in 于notin-->
                        <?php if(in_array(($list['id']), explode(',',"1,2,3"))): ?>在管理组范围<?php endif; ?>
                        <!--empty判断是否为空-->
                        <?php if(empty($list['id']) || (($list['id'] instanceof \think\Collection || $list['id'] instanceof \think\Paginator ) && $list['id']->isEmpty())): ?>ID为空<?php endif; ?>
                        <!--<?php if(empty(app('request')->get('page')) || ((app('request')->get('page') instanceof \think\Collection || app('request')->get('page') instanceof \think\Paginator ) && app('request')->get('page')->isEmpty())): endif; ?>-->

                    </td>
                    <td><?php echo htmlentities($list['username']); ?></td>
                    <td><?php echo htmlentities(md5($list['password'])); ?></td>
                    <td><?php echo htmlentities($list['address']); ?></td>
                    <td><?php echo htmlentities($list['telphone']); ?></td>
                </tr>
                <?php endforeach; endif; else: echo "" ;endif; ?></table>
        </div>
        <div class="col-ml-2"></div>
    </div>
</div>
</body>
</html>